Automattic\WooCommerce\Blocks\BlockTemplatesController D

Total Complexity 172
Dependencies 16
Dependents 1
Total lines 895
Lines of code 539
Logical lines of code 282
Comment lines 245
Methods 22
Properties 3

Methods 22

Method Rating Maintainability Complexity Lines of code
render_block_template()
D
31 49 90
add_block_templates()
C
35 27 76
get_block_templates_from_woocommerce()
A
43 12 49
init()
A
42 10 53
sync_endpoint_with_page()
A
47 9 37
get_block_file_template()
A
47 8 34
maybe_migrate_content()
S
61 8 11
get_block_template_fallback()
S
46 6 37
template_permalink_settings()
S
47 6 37
remove_block_template_support_for_shop_page()
S
60 6 13
render_woocommerce_template_part()
S
63 5 9
check_should_use_blockified_product_grid_templates()
S
64 4 10
update_product_archive_title()
S
64 4 10
update_template_permalink()
S
65 3 9
__construct()
S
63 3 9
block_template_is_available()
S
65 3 9
get_templates_directory()
S
66 3 9
add_archive_product_to_eligible_for_fallback_templates()
S
61 2 14
get_template_path_from_woocommerce()
S
78 1 3
get_block_templates_from_db()
S
75 1 4
register_mini_cart_template_part_area()
S
64 1 10
get_block_templates()
S
70 1 6